package com.atguigu.heap;

import org.junit.Test;

public class PriorityQueueTest {

    @Test
    public void test1(){
        PriorityQueue<Integer> pq = new PriorityQueue<>();
        for(int i=1;i<9;i++){
            pq.enqueue(i);
        }
        for(int i=1;i<9;i++){
            System.out.println(pq.dequeue());
        }
    }
}
